package com.bdqn.carrental.service;

import com.bdqn.carrental.dao.CatinfoMapper;
import com.bdqn.carrental.pojo.catinfo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
@MapperScan("com.bdqn.carrental.dao")
public class CatinfoServiceimpl implements  CatinfoService {

    @Autowired
    CatinfoMapper catinfoMapper;

    @Override
    public List<catinfo> catInfolist(String pinpai) {
        return catinfoMapper.findAllByUserName(pinpai);
    }
}
